{extend name="layout/layout" /}
{block name="content"}
<style>
    .layui-table-cell{
        height:38px;
        line-height: 38px;
    }
</style>
<blockquote class="layui-elem-quote quoteBox" style="border-left:none">
    <div class="layui-form-item" style="overflow: hidden;zoom: 1;width: 100%;">

        <div class="layui-inline" style="float: left;width: 33.3%;height: 100%;">
            <div class="layui-input-block" style="margin-left: 0">
                <a href="{:url('admin/Purchase/add')}"  class="layui-btn layui-btn-normal"><i class="layui-icon"></i> 导入</a>
            </div>
        </div>
        <div class="layui-inline" style="float: left;width: 33.3%;height: 100%;">
            <div class="layui-input-block">
                <h2>采购单签收</h2>
            </div>
        </div>
        <div class="layui-inline" style="float: left;width: 33.3%;height: 100%;">
            <div class="layui-input-block" style="float: right">
                <a href="{:url('admin/Purchase/add')}"  class="layui-btn layui-btn-normal"><i class="layui-icon"></i> 历史签收</a>
            </div>
        </div>
    </div>
</blockquote>

<blockquote class="layui-elem-quote quoteBox" style="height: 46px;border-left:none">

    <div class="layui-form-item">
        <div class="layui-inline" style="margin-top: 12px;">
            <span style="">采购单号：{$purchase_id}</span>
        </div>
        <div class="layui-inline" style="margin-top: 12px;margin-left: 50px;">
            <span style="">供货商：{$supname}</span>
        </div>
    </div>
</blockquote>

<input type="hidden" value="{$purchase_id}" id="purchase_id">
<input type="hidden" value="{$supid}" id="supid">

<table id="dataTable" lay-filter="dataTable_filter"></table>

<div class="layui-form-item layui-form-text" style="margin-top: 10px;">

    <textarea id="remarks" placeholder="收货备注" class="layui-textarea"></textarea>

</div>


<blockquote class="layui-elem-quote quoteBox" style="height: 46px;margin-top: 10px;border-left:none">

    <div class="layui-form-item">
        <div class="layui-inline" style="float: right">
            <button class="layui-btn save_btn">确认收货</button>
        </div>


    </div>
</blockquote>


<!--操作-->
<script type="text/html" id="handleBar">
    <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
    <a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="del">删除</a>
</script>




<input type="hidden" class="datalist_url" value="{:url('admin/Receiving/getpurchase_receiving')}">
<input type="hidden" class="add_url" value="{:url('admin/Purchase/add')}">
<input type="hidden" class="edit_url" value="{:url('admin/Purchase/edit')}">
<input type="hidden" class="delete_url" value="{:url('admin/Receiving/del')}">
<input type="hidden" class="get_session_pro" value="{:url('admin/Purchase/get_session_pro')}">
<input type="hidden" class="select_product_url" value="{:url('admin/Purchase/select_product')}">
<input type="hidden" class="edit_receiving_car" value="{:url('admin/Receiving/edit_receiving_car')}">
<input type="hidden" class="save_receiving" value="{:url('admin/Receiving/save_receiving')}">

{/block}


{block name="pagescript"}
<script>
    var DELETE_URL = "{:url('admin/product/delete')}";
</script>

<script src="__STATIC__/admin/pages/js/receiving.js" type="text/javascript"></script>
{/block}

